package com.byb.server.service;

import com.byb.server.service.dto.Wc.WcProductDetialForFontEndDTO;
import com.byb.server.service.dto.Wc.WcProductForFontEndDTO;
import com.byb.server.service.dto.Wc.WcSearchProductDTO;
import com.byb.server.service.dto.WcProductDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import sun.rmi.runtime.Log;

import java.util.List;

/**
 * Service Interface for managing WcProduct.
 */
public interface WcProductService {

    /**
     * Save a wcProduct.
     *
     * @param wcProductDTO the entity to save
     * @return the persisted entity
     */
    WcProductDTO save(WcProductDTO wcProductDTO);

    /**
     *  Get all the wcProducts.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcProductDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" wcProduct.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    WcProductDTO findOne(Long id);

    /**
     *  Delete the "id" wcProduct.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the wcProduct corresponding to the query.
     *
     *  @param query the query of the search
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcProductDTO> search(String query, Pageable pageable);

    /**
     *  微信查询
     * @param insurerId
     * @param categoryId
     * @param pageable
     * @return
     */
    List<WcProductForFontEndDTO> getProdcutForWc(Long insurerId, Long categoryId, Pageable pageable);

    WcProductDetialForFontEndDTO getProductDetail(Long id,Pageable pageable);

    void generate();

    void saveBatchProduct(List<WcProductDTO> list);
}
